package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the qx_function database table.
 * 
 */
@Entity
@Table(name="qx_function")
@NamedQuery(name="QxFunction.findAll", query="SELECT q FROM QxFunction q")
public class QxFunction implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="function_id")
	private Integer functionId;

	@Column(name="function_fa_id")
	private Integer functionFaId;

	@Column(name="function_icon")
	private String functionIcon;

	@Column(name="function_logo")
	private Integer functionLogo;

	@Column(name="function_name")
	private String functionName;

	@Column(name="function_seq")
	private Integer functionSeq;

	@Column(name="function_url")
	private String functionUrl;

	//bi-directional many-to-many association to Position
	@ManyToMany(mappedBy="qxFunctions")
	private List<Position> positions;

	public QxFunction() {
	}

	public Integer getFunctionId() {
		return this.functionId;
	}

	public void setFunctionId(Integer functionId) {
		this.functionId = functionId;
	}

	public Integer getFunctionFaId() {
		return this.functionFaId;
	}

	public void setFunctionFaId(Integer functionFaId) {
		this.functionFaId = functionFaId;
	}

	public String getFunctionIcon() {
		return this.functionIcon;
	}

	public void setFunctionIcon(String functionIcon) {
		this.functionIcon = functionIcon;
	}

	public Integer getFunctionLogo() {
		return this.functionLogo;
	}

	public void setFunctionLogo(Integer functionLogo) {
		this.functionLogo = functionLogo;
	}

	public String getFunctionName() {
		return this.functionName;
	}

	public void setFunctionName(String functionName) {
		this.functionName = functionName;
	}

	public Integer getFunctionSeq() {
		return this.functionSeq;
	}

	public void setFunctionSeq(Integer functionSeq) {
		this.functionSeq = functionSeq;
	}

	public String getFunctionUrl() {
		return this.functionUrl;
	}

	public void setFunctionUrl(String functionUrl) {
		this.functionUrl = functionUrl;
	}

	public List<Position> getPositions() {
		return this.positions;
	}

	public void setPositions(List<Position> positions) {
		this.positions = positions;
	}

}